package com.lhcai.test;

import java.util.Scanner;
import java.util.TreeSet;

/**
 * @author lhcstart
 * @create 2023-02-22 17:18
 */
public class HJ2 {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        while (sc.hasNext()){
            int n = sc.nextInt();

            TreeSet<Integer> set =new TreeSet<>();
            for (int i = 0; i < n; i++) {
                set.add(sc.nextInt());
            }

            for (Integer integer : set) {
                System.out.println(integer);
            }

        }
    }
}
